package com.xyht.sca_s.student_manage_system.modules.repairCheck.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.repairCheck.entity.vo.SmsRepairCheckProcessVO;
import com.xyht.sca_s.student_manage_system.modules.repairCheck.service.SmsRepairCheckProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-06-19
 */
@SecretBody
@RestController
@RequestMapping("/repairCheck")
public class SmsRepairCheckProcessController {
    @Autowired
    SmsRepairCheckProcessService smsRepairCheckProcessService;

    @ApiModelProperty(value = "修改流程")
    @PostMapping("/update")
    public ResponseResult updateRepairCheckProcess(@RequestBody SmsRepairCheckProcessVO processVO) {
        return smsRepairCheckProcessService.updateRepairCheckProcess(processVO);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getRepairCheckProcessList() {
        return smsRepairCheckProcessService.getRepairCheckProcessList();
    }
}

